package com.tsd.base.service;

import com.tsd.base.entity.BaseExchangeRate;
import com.tsd.base.entity.BaseExchangeRateExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseExchangeRate服务实现层接口
 *
 * @author zsy
 * @date 2020/12/29 15:22:59
 */
public interface BaseExchangeRateService {

    /**
     * 描述：根据id获取BaseExchangeRate
     *
     * @param id
     */
    BaseExchangeRate getBaseExchangeRateById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BaseExchangeRate
     *
     * @param sid
     */
    BaseExchangeRateExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据id删除BaseExchangeRate
     *
     * @param id
     */
    void deleteBaseExchangeRate(Long id, SysUser opUser) throws Exception;

    /**
     * 描述：根据ids批量删除base_exchange_rate
     *
     * @param ids
     */
    void batchDelBaseExchangeRate(List<Long> ids, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新BaseExchangeRate
     *
     * @param record
     * @param opUser
     */
    void saveBaseExchangeRate(BaseExchangeRate record, SysUser opUser) throws Exception;

    /**
     * 描述：批量保存或更新BaseExchangeRate
     *
     * @param baseExchangeRateList
     * @param opUser
     */
    void batchSaveBaseExchangeRate(List<BaseExchangeRateExt> baseExchangeRateList, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询BaseExchangeRate
     *
     * @param params
     * @param page
     */
    List<BaseExchangeRateExt> findBaseExchangeRates(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BaseExchangeRate
     *
     * @param params
     */
    List<BaseExchangeRateExt> findBaseExchangeRates(Map<String, Object> params) throws Exception;

    /**
     * 获取默认的汇率
     *
     * @return
     */
    BaseExchangeRate getDefaultBaseExchangeRate() throws Exception;
}
